<!DOCTYPE html>
<html>
<head>
	<title>账户历史</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="__STATIC__/zh/css/member-1.css">
	<script type="text/javascript" src="__STATIC__/zh/js/jquery-3.2.1.min.js"></script>
	<link href="__STATIC__/zh/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/zh/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__STATIC__/zh/css/home/history.css">	
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/datefont/dates.css">	
</head>
<body>
	 <div class="middle">
    		<div class="head">


    			<div style="width: 15%;float: left;height: 60px;text-align: center;">
		    		<div class="poly">保利</div>
			</div>
			
			<div style="width: 85%;float: left;    margin-top: 40px;; ">
			<div>
	    			 <div class="memu" >
					<span onclick="aaa()">密码设定</span>
					<span onclick="bbb()">下注状况</span>
					<span onclick="ccc()">账户历史</span>
					<span onclick="ddd()">规则说明</span>
					<span onclick="eee()">会员资料</span>
					<span onclick="fff()">开奖记录</span>
					<span onclick="ggg()">即时开奖</span>
					<span onclick="hhh()">客服</span>
					<span onclick="jjj()">登出</span>
				</div>
				
			</div>
			<div class="memu1">
				<span onclick="kkk()">特码</span>
				<span onclick="lll()">正码</span>
				<span onclick="nnn()">正码特</span>
				<span onclick="mmm()">正码1-6</span>
				<span onclick="ooo()">正码过关</span>
				<span onclick="ppp()">特码生肖色波头尾数</span>
				<span onclick="qqq()">连码</span>
				<span onclick="rrr()">半波</span>
				<span onclick="sss()">正肖总肖七码</span>
				<span onclick="ttt()">连肖</span>
				<span onclick="uuu()">尾数连</span>
				<span onclick="vvv()">多肖</span>
				<span onclick="www()">一肖尾数七色波</span>
				<span onclick="xxx()">全不中</span>
				<span onclick="zzz()">多中一</span>
			</div>
		</div> 
	</div>
		<script type="text/javascript">
	function aaa(){window.location.href="{:url('index/home/passchange')}"}
	function bbb(){window.location.href="{:url('index/home/condition')}"}
	function ccc(){window.location.href="{:url('index/home/history')}"}
	function ddd(){window.location.href="{:url('index/home/instrction')}"}
	function eee(){window.location.href="{:url('index/home/data')}"}
	function fff(){window.location.href="{:url('index/home/record')}"}
	function ggg(){window.location.href="{:url('index/home/lottery')}"}
	function hhh(){window.location.href="{:url('index/home/Customer')}?page=1"}
	function iii(){window.location.href=""}
	function jjj(){window.location.href="{:url('index/home/login1')}"}

	function kkk(){window.location.href="{:url('index/home/member1')}"}
	function lll(){window.location.href="{:url('index/home/member2')}"}
	function nnn(){window.location.href="{:url('index/home/member3')}"}
	function mmm(){window.location.href="{:url('index/home/member4')}"}
	function ooo(){window.location.href="{:url('index/home/member5')}"}
	function ppp(){window.location.href="{:url('index/home/member6')}"}
	function qqq(){window.location.href="{:url('index/home/member7')}"}
	function rrr(){window.location.href="{:url('index/home/member8')}"}
	function sss(){window.location.href="{:url('index/home/member9')}"}
	function ttt(){window.location.href="{:url('index/home/member10')}"}
	function uuu(){window.location.href="{:url('index/home/member11')}"}
	function vvv(){window.location.href="{:url('index/home/member12')}"}
	function www(){window.location.href="{:url('index/home/member13')}"}
	function xxx(){window.location.href="{:url('index/home/member14')}"}
	function zzz(){window.location.href="{:url('index/home/member15')}"}
		
	

	</script>



			<div class="left">
			<div style="  width: 100%" >

				<div class="infor">
					<div class="information">
						<div class="username">请检视您的账户</div>
						<table style="width: 100%;background: orange;font-size:14px">
							<thead>
								<tr>
									<td style="text-align: right;">会员账号：</td>
									<td style="text-align: left;">{$user.name}
										<select name="Characters">
												{eq name="$Characters.c1" value="1"}
												<option value="0">A</option>
												{/eq}
												{eq name="$Characters.c2" value="1"}
												<option value="0">B</option>
												{/eq}
												{eq name="$Characters.c3" value="1"}
												<option value="0">C</option>
												{/eq}
												{eq name="$Characters.c4" value="1"}
												<option value="0">D</option>
												{/eq}
										</select>
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">当前期数：</td>
									<td style="text-align: left;">香港六合彩 158 期</td>
								</tr>
								<tr>
									<td style="text-align: right;">信用额度：</td>
									<td style="text-align: left;">{$user.moneys}</td>
								</tr>
								<tr>
									<td style="text-align: right;">已用额度：</td>
									<td style="text-align: left;">{$user.employ}</td>
								</tr>
								<tr>
									<td style="text-align: right;">可用额度：</td>
									<td style="text-align: left;">{$user.m}</td>
								</tr>
								<tr>
									<td colspan="2" style="text-align: center;">请选择下注项目</td>
								</tr>
							</thead>
						</table>
						
						
					</div>
				</div>
					
					<div class="form" style="width: 100%;">
				                        <table style="width: 100%;">
				                            <thead>
				                            <tr>
				                            <td colspan="2">
				                            <div>最近十比交易记录</div>
				                            </td>
				                            <td colspan="2">
						<button>更新</button>
						<button class="shud">x</button>
						</td>
				                            </tr>
				                              {foreach $orders as $os}
												<tr class="money" id="money">
													<th>{:date("m-d H:i",$os.times)}</th>
				                                    <th>{$os.bets}</th>
				                                    <th>{$os.rate}</th>
				                                    <th>{$os.price}</th>
												</tr>
											{/foreach}
				                            </thead>
				                        </table>
					</div>
				</div>
			</div>

			<div class="right">
					<div class="anu">
					<div class="anunon"><span class="run">{foreach $announce as $an}{$an.content}{/foreach}</span></div>
					<button onclick="historynews()">历史消息</button>
				</div>
	<div class="pass">

					<div  class="change">
						<span>账户历史</span>
						<form action="{:url('index/home/history')}">
						<span style="margin-left: 20px">
							<input type="date" id="time" name="stime" value="" style="width: 155px" />
							~
							<input type="date" id="time" name="etime" value="" style="width: 155px" />
						</span>
						<button class="query" type="submit">查询</button>
						</form>
					</div>

					<div class="form">
				                        <table class="table" style="background: white;">
				                            <thead>
				                                <tr class="date">
				                                    <td width='90'>日期</td>
				                                    <td>期数</td>
				                                    <td>下注金额</td>
				                                    <td>退水</td>
				                                    <td>结果</td>
				                                </tr>
				                            </thead>
				                            {foreach $tj as $item}
			                            	<thead>
				                                <tr class="data">
				                                    <td width='90'>{$item['times']}</td>
				                                    <td>{$item['datatime']}</td>
				                                    <td>{$item['allorder']}</td>
				                                    <td>{$item['u7tuishui']}</td>
				                                    <td>{$item['user7']}</td>
				                                </tr>
				                            </thead>
				                            {/foreach}
				                            
				                        </table>
					</div>
					
				</div>
			</div>
		</div>
	</div>


		
		<div id="news">
    			<div class="new">
    				<div class="down">x</div>
				<div class="newtime">
					<span>{foreach $announce as $an}{$an.content}{/foreach}</span>
				</div>
				<div class="oldtime">
					
				</div>
    			</div>
    		</div>

		<!-- 全局js -->
		<script src="__STATIC__/js/jquery.min.js?v=2.1.4"></script>
		<script src="__STATIC__/js/bootstrap.min.js?v=3.3.6"></script>

		

		
		<script type="text/javascript">
			//历史消息模态框
			$('.down').click(function(){
				var e1 = document.getElementById('news');        
				e1.style.visibility = (e1.style.visibility == "hidden")? "visible" : "hidden";
			})

			function historynews(){
				var e1 = document.getElementById('news');        
				e1.style.visibility = (e1.style.visibility == "visible")? "hidden" : "visible";
			}
		// function mytime(){
		//         var a = new Date();
		//         var b = a.toLocaleTimeString();
		//         var c = a.toLocaleDateString();
		//         document.getElementById("time1").innerHTML = c+"&nbsp"+b;
		//         }
		//     setInterval(function() {mytime()},1000);

		// 	$(function(){ 
		// 		var timestamp = Date.parse(new Date());
		// 		$("input[name=stime]").attr('value',fmtDate(timestamp));
		// 		$("input[name=etime]").attr('value',fmtDate(timestamp));    
		// 	})
		// 	window.onresize=resizeBannerImage;//当窗口改变宽度时执行此函数
		// 	function resizeBannerImage()
		// 	   {
		// 	    var winW = $(window).width();
		// 	        /* 这里是要执行的代码 */
		// 	        // console.log(winW)

		// 	   }
		// 	// 页面刷新之后访问的方法
		// 	// $(document).ready(function(){
		//  	//        console.log($(document).width())
		//  	//    })
		// 	function fmtDate(obj){
		// 	    var date =  new Date(obj);
		// 	    var y = 1900+date.getYear();
		// 	    var m = "0"+(date.getMonth()+1);
		// 	    var d = "0"+date.getDate();
		// 	    return y+"-"+m.substring(m.length-2,m.length)+"-"+d.substring(d.length-2,d.length);
		// 	}
		function mytime(){
		        var a = new Date();
		        var b = a.toLocaleTimeString();
		        var c = a.toLocaleDateString();
		        // document.getElementById("time1").innerHTML = c+"&nbsp"+b;
		        }
		    setInterval(function() {mytime()},1000);
		    	// 判断是否给踢线
		window.setInterval(show,5000); 
		function show(){ 
			$.getJSON("{:url('index/login/sta')}",function(result){
				if(result==false) window.location.href="{:url('index/login/logout')}";
			})
		}
			        var flag =false
			        $('#lol').click(function(){
			          if(flag){
			            $('.last').animate({    
			              'right':'0px'
			            },500)
			            flag = false
			          }else{
			            $('.last').animate({
			              'right':'-288px'
			            },500)
			            flag = true
			          }

			        })
			        
		</script>

		<script type="text/javascript">
			 $(function(){
			var price = 0
			//轮播
			var left = 0;
			function move(){
				left--
				if (left < -$(".run").width()) {
					left = 0
				}
				$(".run").css("left",left+"px")
			}
			setInterval(move,40)
		})
		</script>

			

	

	</div>
	</div> 
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>